Component({
    properties: {
        title:String,
        first:Boolean,
        latest:Boolean
    },
    data: {
        disLeftSrc: 'images/triangle.dis@left.png',
        LeftSrc: 'images/triangle@left.png',
        disRightSrc: 'images/triangle.dis@right.png',
        RightSrc: 'images/triangle@right.png'



    },
    methods: {
        onLeft:function (event) {
            if(!this.properties.latest){
                this.triggerEvent("left",{},{})
            }

        },
        onRight:function (event) {
            if(!this.properties.first){
                this.triggerEvent("right",{},{})
            }

        }


    }
})
